package com.dao;

import com.domain.Contribute;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository("contributeDao")
public interface ContributeDao {

    //显示所有贡献信息
    public List showContribute(@Param("from")int page,@Param("pageSize")int pageSize,@Param("space_id")int space_id);

    public int showContributeTotal(int space_id);

    List showYContribute(@Param("space_id")int space_id);

    List  showUNContribute(@Param("space_id")int space_id);

    List  showDContribute(@Param("space_id")int space_id);


    //根据资源id显示贡献信息
    public Contribute showContributeById(@Param("id")Integer id,@Param("space_id")int space_id);

    //添加贡献
    public Integer insertContribute(Contribute contribute);

    int deleteContributeBySpaceId(int space_id);


    Contribute findLastId();
}
